package data;

import java.util.Map.Entry;

public class Par<K,V> implements Entry<K, V> 
{
	private K _key;
	private V _val;
	
	public Par(K key, V val)
	{
		_key = key;
		_val = val;
	}

	@Override
	public K getKey() 
	{
		return _key;
	}

	@Override
	public V getValue() 
	{
		return _val;
	}

	@Override
	public V setValue(V value) 
	{
		_val = value;
		return _val;
	}
	
	@Override
	public String toString()
	{
		return new String(_key + " : " + _val);
	}

	
}
